package com.andyage.admin.dao;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.andyage.admin.bean.AdnewsBean;
/**
 * 消息
 * @author john
 *
 */
public interface AdnewsMapper {
	/**
	 * 新增（生成消息）
	 * @param newsBean
	 * @return
	 * @throws Exception
	 */
	int addNewsInfo(AdnewsBean newsBean)throws Exception;
	/**
	 * 查询消息
	 * @param newsBean
	 * @return
	 * @throws Exception
	 */
	List<AdnewsBean> queryNewsInfo(AdnewsBean newsBean)throws Exception;
	/**
	 * 查询消息总数
	 * @param newsBean
	 * @return
	 * @throws Exception
	 */
	int queryNewsInfoCount(AdnewsBean newsBean)throws Exception;
}	
